home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d16 / qdk_win.arc / INSTANCE.PAT < prev    next >
Text File  |  1991-08-12  |  7KB  |  186 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.           Quarterdeck Technical Note
  9.  
  10.           Subject:  Patching QEMM-386 5.10, 5.11, 5.12 and 5.13 
  11.           to withhold available Upper Memory Blocks from programs 
  12.           running inside Microsoft Windows 3.0 enhanced mode.
  13.  
  14.           Background: QEMM versions 5.10 through 5.13 take 
  15.           advantage of Microsoft Windows 3.0's VXD interface to 
  16.           provide a copy of all available Upper Memory Blocks 
  17.           (identified by the QEMM.COM and Manifest utilities as 
  18.           High RAM) to each window running inside Windows 
  19.           enhanced mode.  This seemed like a good idea at the 
  20.           time: each window in Windows enhanced can load its own 
  21.           set of programs into upper memory, either through the 
  22.           XMS (Extended Memory Specification) or with QEMM-386's 
  23.           LOADHI.COM program, when QEMM-386 is providing this 
  24.           feature.  However, few programs avail themselves of 
  25.           this opportunity.  Furthermore, the additional overhead 
  26.           of providing a copy of all available UMB's for each 
  27.           window places a memory strain on low-memory systems; 
  28.           and, because Windows enhanced mode takes this overhead 
  29.           out of conventional memory, the size of each window in 
  30.           Windows enhanced mode shrinks, a high price for large 
  31.           DOS applications to pay.  Finally, Quarterdeck observes 
  32.           that Windows enhanced mode may begin to malfunction if 
  33.           QEMM-386 provides it with enough data to manage on a 
  34.           window-by-window basis. 
  35.  
  36.           Versions of QEMM-386 after version 5.13 will not 
  37.           provide a copy of available UMB's to each window in 
  38.           Windows enhanced mode.  In the meantime, QEMM-386 can 
  39.           be patched to eliminate this feature.
  40.  
  41.  
  42.           This procedure is for use with the following QEMM-386 
  43.           versions: 
  44.  
  45.                   5.10                       
  46.                   5.11                       
  47.                   5.12                       
  48.                   5.13                       
  49.                  
  50.           ***************************************************
  51.  
  52.  
  53.                1) Make a copy of the QEMM386.SYS file in your 
  54.           QEMM directory.  We are about to alter your current 
  55.           copy of QEMM386.SYS; the copy you make will serve as a 
  56.           backup in case this operation fails.
  57.  
  58.                  COPY C:\QEMM\QEMM386.SYS C:\QEMM\QEMM386.OLD
  59.  
  60.           (If your QEMM386.SYS is not located in the QEMM 
  61.           directory of the C: drive, change the path 
  62.           accordingly.)
  63.  
  64.                2) Go to the DOS directory on the hard disk and 
  65.           type:
  66.  
  67.                  DEBUG C:\QEMM\QEMM386.SYS
  68.  
  69.           (If your QEMM386.SYS is not located in the QEMM 
  70.           directory of the C: drive, change the path 
  71.           accordingly.)
  72.  
  73.           Hit the Enter key; you should see the DEBUG prompt, 
  74.           which is a hyphen.
  75.  
  76.               3) At the DEBUG prompt, type:
  77.  
  78.                      S 8000 L 2000 55 8B E9 BE
  79.  
  80.           Hit the Enter key; DEBUG should return a segment 
  81.           address and an offset:
  82.  
  83.                       xxxx:yyyy
  84.  
  85.           4) At the DEBUG prompt again, use the segment address 
  86.           and offset that was just returned to give the DEBUG 
  87.           command:
  88.  
  89.                       E xxxx:yyyy EB 8
  90.  
  91.           The address that DEBUG returned in step 3 should be 
  92.           used in place of the address xxxx:yyyy, which we use as 
  93.           an example.  Hit the Enter key; the DEBUG prompt should 
  94.           return in a moment.
  95.  
  96.  
  97.           5) At the DEBUG prompt, type
  98.  
  99.                        W
  100.  
  101.           Hit the Enter key; DEBUG will announce that it is 
  102.           writing a certain number of bytes, then it will return 
  103.           the DEBUG prompt.
  104.  
  105.  
  106.           6) At the DEBUG prompt, type
  107.  
  108.                        Q
  109.  
  110.           Hit the Enter key to exit DEBUG and return to DOS.
  111.  
  112.             7) To double-check your patch, type the following 
  113.           from the DOS prompt in your DOS directory:
  114.  
  115.                      COMP C:\QEMM\QEMM386.SYS C:\QEMM\QEMM386.OLD
  116.  
  117.           (If your QEMM386.SYS is not located in the QEMM 
  118.           directory of the C: drive, change the path 
  119.           accordingly.)
  120.  
  121.           Hit the Enter key.  COMP should return:
  122.  
  123.  
  124.           C:QEMM386.SYS and C:QEMM386.OLD
  125.  
  126.           Compare error at OFFSET x
  127.           File 1 = EB
  128.  
  129.           File 2 = 55
  130.  
  131.           Compare error at OFFSET x
  132.           File 1 = 08
  133.  
  134.           File 2 = 8B
  135.  
  136.           Eof mark not found
  137.  
  138.           Compare more files (Y/N) ?
  139.  
  140.  
  141.           The value x after OFFSET will vary from version to 
  142.           version of QEMM 5.1, but the rest of the message should 
  143.           be the same: it tells us that there are exactly two 
  144.           bytes difference between the files, and the differing 
  145.           bytes are EB and 55 in QEMM386.SYS and 08 and 8B in 
  146.           QEMM386.OLD.  If COMP returns the message:
  147.  
  148.           Files compare ok  
  149.  
  150.           ...then you probably failed to use DEBUG's W command to 
  151.           save your change, or you have compared the wrong files.  
  152.           If COMP returns more than two compare errors, or if the 
  153.           bytes returned by the compare errors don't match those 
  154.           in the above example, the procedure has failed. In this 
  155.           case, use the DOS command:
  156.  
  157.               COPY C:\QEMM\QEMM386.OLD C:\QEMM\QEMM386.SYS
  158.  
  159.           ... to restore the original file, and try again.
  160.  
  161.  
  162.           If the patch was successful, you should now reboot the 
  163.           system and test the patched version of QEMM-386.
  164.  
  165.  
  166.           --------------------------------------------------
  167.  
  168.           If the system fails after you perform this patch, you 
  169.           can follow the instructions in the "Installation" 
  170.           section of your QEMM-386 manual to recover without 
  171.           resorting to a boot floppy.  After your system is 
  172.           booted successfully, copy the backup of QEMM-386 that 
  173.           you made back to its original name with the following 
  174.           DOS command:
  175.  
  176.                COPY C:\QEMM\QEMM386.OLD C:\QEMM\QEMM386.SYS
  177.  
  178.           (If your QEMM386.SYS is not located in the QEMM 
  179.           directory of the C: drive, change the path 
  180.           accordingly.)
  181.  
  182.           You may then wish to try the above procedure again, in 
  183.           case a mistake was made.
  184.  
  185.                      * * *   E N D   O F   F I L E    * * *
  186.